package com.zoe.app;

import cn.hutool.extra.spring.SpringUtil;
import com.zoe.app.entity.Car;
import com.zoe.app.entity.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zoe.Zhang
 * @date 2021/09/23
 * @description
 */
@SpringBootApplication
@RestController
public class MainAppValue {
    public static void main(String[] args) {
        SpringApplication.run(MainAppValue.class, args);
    }

    @GetMapping
    public String hello() {
        return SpringUtil.getBean(Car.class).toString() + "\r" + SpringUtil.getBean(User.class).toString();
    }
}
